﻿using Model;

namespace IBLL
{
    public interface IRoomBll
    {
        /// <summary>
        /// 居民信息录入
        /// </summary>
        /// <param name="room">表名</param>
        /// <returns>返回受影响行数</returns>
        Task<int> Tian(Room room);
        /// <summary>
        ///  显示居民信息
        /// </summary>
        /// <param name="name">居民姓名</param>
        /// <param name="types">居民类型</param>
        /// <param name="PageIndex">当前页</param>
        /// <param name="PageSize">页容量</param>
        /// <returns></returns>
        dynamic Xian(string? name, string? types, int PageIndex, int PageSize);
        /// <summary>
        /// 批量删除功能（逻辑删除）
        /// </summary>
        /// <param name="sid">sid标识符</param>
        /// <returns>返回受影响行数</returns>
        Task<int> PlLjDelete(string sid);
        /// <summary>
        /// 批量审核功能（修改状态为已审核）
        /// </summary>
        /// <param name="sid">sid标识符</param>
        /// <returns>返回受影响行数</returns>
        Task<int> PlShUpdate(string sid);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="room">表名</param>
        /// <returns>返回受影响行数</returns>
        Task<int> Xiu(Room room);
        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="id">id标识符</param>
        /// <returns></returns>
        Room Fan(int id);
    }
}
